using AppToolKit.Model.Validation.Validator;
using System;
namespace AppToolKit.Model.Validation.Attribute
{
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
	public class RequireRuleAttribute : RuleAttribute
	{
		public RequireRuleAttribute(ValidateBehavior behavior) : base(behavior)
		{
		}
		public RequireRuleAttribute() : base(ValidateBehavior.Both)
		{
		}
		public override IValidator CreateVaildator()
		{
			return new RequireRuleValidator();
		}
	}
}
